import { createRouter, createWebHistory } from 'vue-router'
import Popups from '@/public-view/Popups.vue'
import Login from '@/public-view/Login.vue'
import MainPage from "@/public-view/MainPage.vue";
import ActiveTable from "@/public-view/ActiveTable.vue";
import StorePage from "@/basic-view/store/StorePage.vue";
import TestCustomer from '@/test/TestCustomer.vue';
// import TestGood from '@/test/TestGood.vue';
import Index from "@/public-view/Index.vue"
import LimitPage from "@/basic-view/customer/CustomerLimitPage.vue";
import AddCustomer from "@/basic-view/customer/AddCustomer.vue";
import CustomerLimitPage from "@/basic-view/customer/CustomerLimitPage.vue";
import UnitPage from "@/basic-view/unit/UnitPage.vue";
import BasicInfo from "@/public-view/BasicInfo.vue";
import NewAddCustomer from "@/basic-view/customer/NewAddCustomer.vue";
import NewCustomerLimitPage from "@/basic-view/customer/NewCustomerLimitPage.vue";
import BOMLimitPage from '@/basic-view/bom/BOMLimitPage.vue';
import AddBOM from '@/basic-view/bom/AddBOM.vue';
import EditBOM from '@/basic-view/bom/EditBOM.vue';

//生产
import CbtzPage from '@/kc-view/cbtz/CbtzPage.vue';
import Addcbtz from '@/kc-view/cbtz/Addcbtz.vue';
import EditCBTZ from '@/kc-view/cbtz/EditCBTZ.vue';
import KcdbPage from '@/kc-view/kcdb/KcdbPage.vue';
import Addkcdb from '@/kc-view/kcdb/Addkcdb.vue';
import EditKCDB from '@/kc-view/kcdb/EditKCDB.vue';
import CpzzPage from '@/kc-view/cpzz/CpzzPage.vue';
import EditCPZZ from '@/kc-view/cpzz/EditCPZZ.vue';
import Addcpzz from '@/kc-view/cpzz/Addcpzz.vue';
import CpcxPage from '@/kc-view/cpcx/CpcxPage.vue';
import Addcpcx from '@/kc-view/cpcx/Addcpcx.vue';
import EditCPCX from '@/kc-view/cpcx/EditCPCX.vue';

import CGSQPage from "@/cg-view/CGSQPage.vue";
import GoodsCategory from "@/basic-view/goodsCategory/GoodsCategory.vue";
import GoodLimitPage from "@/basic-view/good/GoodLimitPage.vue";
import AddCGSQ from "@/cg-view/AddCGSQ.vue";
import CGXJPage from "@/cg-view/CGXJPage/CGXJPage.vue";
import AddCGXJ from "@/cg-view/CGXJPage/AddCGXJ.vue";
import GYBJPage from "@/cg-view/GYBJPage/GYBJPage.vue";
import AddGYBJ from "@/cg-view/GYBJPage/AddGYBJ.vue";
import test2 from "@/cg-view/GYBJPage/test2.vue";
import CGBJPage from "@/cg-view/CGBJPage/CGBJPage.vue";
import AddCGBJ from "@/cg-view/CGBJPage/AddCGBJ.vue";
import Test from "@/cg-view/GYBJPage/test.vue";
import CGDDPage from "@/cg-view/CGDDPage/CGDDPage.vue";
import AddCGDD from "@/cg-view/CGDDPage/AddCGDD.vue";
import CGTHPage from "@/cg-view/CGTHPage/CGTHPage.vue";
import AddCGTH from "@/cg-view/CGTHPage/AddCGTH.vue";
import PrePay from "@/fk-view/prePay/PrePay.vue";
import AddPrePay from "@/fk-view/prePay/AddPrePay.vue";


//销售页面
import SalesOrderInfo from '@/sales-order/SalesOrderInfo.vue';
import UpdateSalesOrder from '@/sales-order/UpdateSalesOrder.vue';
import SalesQuotesInf from '@/sales-quotes/SalesQuotesInf.vue';
import AddSalesQuotes from '@/sales-quotes/AddSalesQuotes.vue';
import UpdateSalesQuotes from '@/sales-quotes/UpdateSalesQuotes.vue';
import SalesReturnInfo from '@/sales-return/SalesReturnInfo.vue';
import AddSalesReturn from '@/sales-return/AddSalesReturn.vue';
import UpdateSalesReturn from '@/sales-return/UpdateSalesReturn.vue';
import ProviderLimitPage from "@/basic-view/provider/ProviderLimitPage.vue";
import AccountLimitPage from "@/basic-view/account/AccountLimitPage.vue";
import SalesInvoiceLimitPage from "@/sales-invoice/SalesInvoiceLimitPage.vue";
import AddSalesInvoice from "@/sales-invoice/AddSalesInvoice.vue";
import AddSalesOrder from "@/sales-order/AddSalesOrder.vue";
import UpdateSalesInvoice from "@/sales-invoice/UpdateSalesInvoice.vue";
import SalesOrderExecutionStatusLimitPage from "@/salesOrderExecutionStatus/SalesOrderExecutionStatusLimitPage.vue";
import SalesOrderExecutionPage from "@/salesOrderExecutionStatus/SalesOrderExecutionPage.vue";
import PurchaseInvoiceLimitPage from "@/purchase-invoice/PurchaseInvoiceLimitPage.vue";
import SalesOrderSummaryPageCustomer from "@/SalesOrderSummary/SalesOrderSummaryPage-Customer.vue";
import SalesOrderSummaryPageMonth from "@/SalesOrderSummary/SalesOrderSummaryPage-Month.vue";
import SalesOrderSummaryPageYear from "@/SalesOrderSummary/SalesOrderSummaryPage-Year.vue";
import AddPurchaseInvoice from "@/purchase-invoice/AddPurchaseInvoice.vue";
import UpdatePurchaseInvoice from "@/purchase-invoice/UpdatePurchaseInvoice.vue";
import PurchaseOrderSummaryLimitPage from "@/purchase-summary/PurchaseOrderSummaryLimitPage-Provider.vue";
import PurchaseOrderSummaryLimitPageStaff from "@/purchase-summary/PurchaseOrderSummaryLimitPage-Staff.vue";
import SalesReceivableInfo from '@/sales-collection/SalesReceivableInfo.vue';


//财务页面
import SalesCollectionInfo from '@/sales-collection/SalesCollectionInfo.vue';
import AddSaleCollection from '@/sales-collection/AddSaleCollection.vue';
import UpdateSaleCollection from '@/sales-collection/UpdateSaleCollection.vue';
import SalesCollectionRefund from '@/sales-collection/SalesCollectionRefund.vue';
import AddSaleCollectionRefund from '@/sales-collection/AddSaleCollectionRefund.vue';
import UpdateSalesCollectionRefund from '@/sales-collection/UpdateSalesCollectionRefund.vue';
import AddSalesAdvance from '@/sales-collection/AddSalesAdvance.vue';
import SalesAdvanceInfo from '@/sales-collection/SalesAdvanceInfo.vue';
import UpdateSalesAdvance from '@/sales-collection/UpdateSalesAdvance.vue';
import SalesAdvanceRefundInfo from '@/sales-collection/SalesAdvanceRefundInfo.vue';
import AddSalesAdvanceRefund from '@/sales-collection/AddSalesAdvanceRefund.vue';
import UpdateSalesAdvanceRefund from '@/sales-collection/UpdateSalesAdvanceRefund.vue';
import WriteOffInfo from '@/sales-writeoff/WriteOffInfo.vue';
import AddWriteOff from '@/sales-writeoff/AddWriteOff.vue';
import UpdateWriteOff from '@/sales-writeoff/UpdateWriteOff.vue';
import AddCwOtherIncome from '@/sales-collection/AddCwOtherIncome.vue';
import CwOtherIncomeInfo from '@/sales-collection/CwOtherIncomeInfo.vue';
import UpdateCwOtherIncome from '@/sales-collection/UpdateCwOtherIncome.vue';
import CwOtherIncomeRefundInfo from '@/sales-collection/CwOtherIncomeRefundInfo.vue';
import AddCwOtherIncomeRefund from '@/sales-collection/AddCwOtherIncomeRefund.vue';
import UpdateCwOtherIncomeRefund from '@/sales-collection/UpdateCwOtherIncomeRefund.vue';

//财务付款
import OtherPayPage from '@/fk-view/OtherPayPage.vue';
import AddOtherPay from '@/fk-view/AddOtherPay.vue';
import Refund from '@/fk-view/refund/Refund.vue';
import AddRefund from '@/fk-view/refund/AddRefund.vue';

import PayPage from "@/fk-view/pay/PayPage.vue";
import addPay from "@/fk-view/pay/addPay.vue";


//入库页面
import BuyInStorePage from "@/kc-view/instore/buy-inStore/BuyInStorePage.vue";
import AddBuyInStore from "@/kc-view/instore/buy-inStore/AddBuyInStore.vue";
import EditBuyInStore from "@/kc-view/instore/buy-inStore/EditBuyInStore.vue";
import StoreGoodSummaryPage from "@/kc-view/ckbb/StoreGoodSummaryPage-StoreGood.vue";
import StoreGoodSummaryPageGoodsTransactionDetail from "@/kc-view/ckbb/StoreGoodSummaryPage-GoodsTransactionDetail.vue";
import StoreGoodSummaryPageBatchTrackingDetail from "@/kc-view/ckbb/StoreGoodSummaryPage-BatchTrackingDetail.vue";
import { User } from '@element-plus/icons-vue';

//出库页面
import SaleOutStorePage from "@/kc-view/outstore/sale-outStore/SaleOutStorePage.vue";
import AddSaleOutStore from "@/kc-view/outstore/sale-outStore/AddSaleOutStore.vue";
import EditSaleOutStore from "@/kc-view/outstore/sale-outStore/EditSaleOutStore.vue";
import QualityPage from "@/kc-view/quality/QualityPage.vue";
import AddQuality from "@/kc-view/quality/AddQuality.vue";
import EditQuality from "@/kc-view/quality/EditQuality.vue";
import InventoryCheckPage from "@/kc-view/inventory-check/InventoryCheckPage.vue";
import AddInventoryCheck from "@/kc-view/inventory-check/AddInventoryCheck.vue";
import EditInventoryCheck from "@/kc-view/inventory-check/EditInventoryCheck.vue";
import InventoryProfitPage from "@/kc-view/inventory-profit/InventoryProfitPage.vue";
import AddInventoryProfit from "@/kc-view/inventory-profit/AddInventoryProfit.vue";
import EditInventoryProfit from "@/kc-view/inventory-profit/EditInventoryProfit.vue";
import InventoryLossPage from "@/kc-view/inventory-loss/InventoryLossPage.vue";
import AddInventoryLoss from "@/kc-view/inventory-loss/AddInventoryLoss.vue";
import EditInventoryLoss from "@/kc-view/inventory-loss/EditInventoryLoss.vue";
import OtherInStorePage from "@/kc-view/instore/other-inStore/OtherInStorePage.vue";
import AddOtherInStore from "@/kc-view/instore/other-inStore/AddOtherInStore.vue";
import EditOtherInStore from "@/kc-view/instore/other-inStore/EditOtherInStore.vue";
import OtherOutStorePage from "@/kc-view/outstore/other-outStore/OtherOutStorePage.vue";
import AddOtherOutStore from "@/kc-view/outstore/other-outStore/AddOtherOutStore.vue";
import EditOtherOutStore from "@/kc-view/outstore/other-outStore/EditOtherOutStore.vue";
import AddWorkFlow from "@/activiti/view/AddWorkFlow.vue";
import EditWorkFlow from "@/activiti/view/EditWorkFlow.vue";
import ShowWorkFlow from "@/activiti/view/ShowWorkFlow.vue";
import WorkFlowPageView from "@/activiti/view/WorkFlowPageView.vue";

//人事页面
import DeptLimitPage from '@/rs-view/dept/DeptLimitPage.vue';
import PermLimitPage from '@/rs-view/permission/PermLimitPage.vue';
import RoleLimitPage from '@/rs-view/role/RoleLimitPage.vue';
import AddRole from '@/rs-view/role/AddRole.vue';
import EditRole from '@/rs-view/role/EditRole.vue';
import UserLimitPage from '@/rs-view/user/UserLimitPage.vue';
import AddUser from '@/rs-view/user/AddUser.vue';
import EditUser from '@/rs-view/user/EditUser.vue';




const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/popups', component: Popups },
    { path: '/testCustomer', component: TestCustomer },
    { path: '/limitPage', component: LimitPage },
    { path: '/addCustomer', component: AddCustomer },
    { path: '/basic', component: BasicInfo },
    { path: '/newAdd', component: NewAddCustomer },
    { path: '',
      component: Login,
      children: [
        {
          path: '',
          redirect: 'login',
        },
        {
          path: 'login',
          component: Login
        }
      ]
    },
    {
      path: '/home',
      component: MainPage,
      children: [
        {
          path: '',
          redirect: 'home/index'
        },
        {
          path: 'index',
          component: Index
        },
        {
          path: 'basic',
          component: Login,
        },
        {
          path: 'updateSalesQuotes/:doCode',
          name: 'UpdateSalesQuotes',
          component: () => import('@/sales-quotes/UpdateSalesQuotes.vue')
        },
        {
          path: 'salesOrderInfo',
          name: 'SalesOrderInfo',
          component: SalesOrderInfo
        },
        {
          path: 'addSalesOrder',
          name: 'AddSalesOrder',
          component: AddSalesOrder
        },
        {
          path: 'updateSalesOrder/:docCode',
          name: 'UpdateSalesOrder',
          component: UpdateSalesOrder
        },
        {
          path: 'addSalesReturn',
          name: 'AddSalesReturn',
          component: AddSalesReturn
        },
        {
          path: 'salesReturnInfo',
          name: 'SalesReturnInfo',
          component: SalesReturnInfo
        },
        {
          path: 'updateSalesReturn/:docCode',
          name: 'UpdateSalesReturn',
          component: UpdateSalesReturn
        },
        {
          path: 'basic/goodLimitPage',
          name: 'goodLimitPage',
          component: GoodLimitPage,
        },
        {
          path: 'basic/BOMLimitPage',
          name: 'BOMLimitPage',
          component: BOMLimitPage,
        },
        {
          path: 'basic/AddBOM',
          name: 'AddBOM',
          component: AddBOM,
        },
        {
          path: 'inStore/buyInStore/',
          redirect: "inStore/buyInStore/page"
        }
        //工作流设计
        , {
          path: 'workflow/page',
          name: 'WorkFlowPage',
          component: WorkFlowPageView,
        },
        {
          path: 'workflow/add',
          name: 'AddWorkFlow',
          component: AddWorkFlow,
        },
        {
          path: 'workflow/edit',
          name: 'EditWorkFlow',
          component: EditWorkFlow,
        },
        {
          path: 'workflow/show',
          name: 'ShowWorkFlow',
          component: ShowWorkFlow,
        },

        //其他入库
        {
          path: 'inStore/otherInStore/page',
          name: 'OtherInStorePage',
          component: OtherInStorePage,
        },
        {
          path: 'inStore/otherInStore/add',
          name: 'AddOtherInStore',
          component: AddOtherInStore,
        },
        {
          path: 'inStore/otherInStore/edit/:code',
          name: 'EditOtherInStore',
          component: EditOtherInStore,
        },

        //其他出库
        {
          path: 'outStore/otherOutStore/page',
          name: 'OtherOutStorePage',
          component: OtherOutStorePage,
        },
        {
          path: 'outStore/otherOutStore/add',
          name: 'AddOtherOutStore',
          component: AddOtherOutStore,
        },
        {
          path: 'outStore/otherOutStore/edit/:code',
          name: 'EditOtherOutStore',
          component: EditOtherOutStore,
        },

        //盘点
        {
          path: 'inventoryCheck/page',
          name: 'InventoryCheckPage',
          component: InventoryCheckPage,
        },
        {
          path: 'inventoryCheck/add',
          name: 'AddInventoryCheck',
          component: AddInventoryCheck,
        },
        {
          path: 'inventoryCheck/edit/:code',
          name: 'EditInventoryCheck',
          component: EditInventoryCheck,
        },

        //盘盈
        {
          path: 'inventoryProfit/page',
          name: 'InventoryProfitPage',
          component: InventoryProfitPage,
        },
        {
          path: 'inventoryProfit/add',
          name: 'AddInventoryProfit',
          component: AddInventoryProfit,
        },
        {
          path: 'inventoryProfit/:code',
          name: 'EditInventoryProfit',
          component: EditInventoryProfit,
        },
        //盘亏
        {
          path: 'inventoryLoss/page',
          name: 'InventoryLossPage',
          component: InventoryLossPage,
        },
        {
          path: 'inventoryLoss/add',
          name: 'AddInventoryLoss',
          component: AddInventoryLoss,
        },
        {
          path: 'inventoryLoss/edit/:code',
          name: 'EditInventoryLoss',
          component: EditInventoryLoss,
        },

        {
          path: 'inStore/buyInStore/page',
          name: 'BuyInStorePage',
          component: BuyInStorePage,
        },
        {
          path: 'inStore/buyInStore/add',
          name: 'AddBuyInStore',
          component: AddBuyInStore,
        },
        {
          path: 'inStore/buyInStore/edit/:code',
          name: 'EditBuyInStore',
          component: EditBuyInStore,
        },
        //出库
        {
          path: 'outStore/saleOutStore/',
          redirect: "outStore/saleOutStore/page"
        },
        {
          path: 'outStore/saleOutStore/page',
          name: 'SaleOutStorePage',
          component: SaleOutStorePage,
        },
        {
          path: 'outStore/saleOutStore/add',
          name: 'AddSaleOutStore',
          component: AddSaleOutStore,
        },
        {
          path: 'outStore/saleOutStore/edit/:code',
          name: 'EditSaleOutStore',
          component: EditSaleOutStore,
        },
        //质检
        {
          path: 'quality/page',
          name: 'QualityPage',
          component: QualityPage,
        },
        {
          path: 'quality/add',
          name: 'AddQuality',
          component: AddQuality,
        },
        {
          path: 'quality/edit/:code',
          name: 'EditQuality',
          component: EditQuality,
        },
        {
          path: 'table',
          component: ActiveTable
        },
        {
          path: 'addSalesQuotes',
          name: 'AddSalesQuotes',
          component: AddSalesQuotes
        },
        {
          path: 'salesReceivableInfo',
          name: 'SalesReceivableInfo',
          component: SalesReceivableInfo
        },
        {
          path: 'addSaleCollection',
          name: 'AddSaleCollection',
          component: AddSaleCollection
        },
        {
          path: 'salesCollectionInfo',
          name: 'SalesCollectionInfo',
          component: SalesCollectionInfo
        },
        {
          path: 'salesCollectionRefund',
          name: 'SalesCollectionRefund',
          component: SalesCollectionRefund
        },
        {
          path: 'updateSaleCollection/:docCode',
          name: 'UpdateSaleCollection',
          component: UpdateSaleCollection
        },
        {
          path: 'addSaleCollectionRefund',
          name: 'AddSaleCollectionRefund',
          component: AddSaleCollectionRefund
        },
        {
          path: 'updateSalesCollectionRefund/:docCode',
          name: 'UpdateSalesCollectionRefund',
          component: UpdateSalesCollectionRefund
        },
        {
          path: 'addSalesAdvance',
          name: 'AddSalesAdvance',
          component: AddSalesAdvance
        },
        {
          path: 'salesAdvanceInfo',
          name: 'SalesAdvanceInfo',
          component: SalesAdvanceInfo
        },
        {
          path: 'updateSalesAdvance/:docCode',
          name: 'UpdateSalesAdvance',
          component: UpdateSalesAdvance
        },
        {
          path: 'salesAdvanceRefundInfo',
          name: 'SalesAdvanceRefundInfo',
          component: SalesAdvanceRefundInfo
        },
        {
          path: 'addSalesAdvanceRefund',
          name: 'AddSalesAdvanceRefund',
          component: AddSalesAdvanceRefund
        },
        {
          path: 'updateSalesAdvanceRefund/:docCode',
          name: 'UpdateSalesAdvanceRefund',
          component: UpdateSalesAdvanceRefund
        },
        {
          path: 'writeOffInfo',
          name: 'WriteOffInfo',
          component: WriteOffInfo
        },
        {
          path: 'addWriteOff',
          name: 'AddWriteOff',
          component: AddWriteOff
        },

        {
          path: 'addCwOtherIncome',
          name: 'AddCwOtherIncome',
          component: AddCwOtherIncome
        },
        {
          path: 'updateWriteOff/:docCode',
          name: 'UpdateWriteOff',
          component: UpdateWriteOff
        },
        {
          path: 'cwOtherIncomeInfo',
          name: 'CwOtherIncomeInfo',
          component: CwOtherIncomeInfo
        },
        {
          path: 'updateCwOtherIncome/:docCode',
          name: 'UpdateCwOtherIncome',
          component: UpdateCwOtherIncome
        },
        {
          path: 'cwOtherIncomeRefundInfo',
          name: 'CwOtherIncomeRefundInfo',
          component: CwOtherIncomeRefundInfo
        },
        {
          path: 'addCwOtherIncomeRefund',
          name: 'AddCwOtherIncomeRefund',
          component: AddCwOtherIncomeRefund
        },
        {
          path: 'updateCwOtherIncomeRefund/:docCode',
          name: 'UpdateCwOtherIncomeRefund',
          component: UpdateCwOtherIncomeRefund

        },

        {
          path: 'basic/store',
          component: StorePage
        },
        {
          path: 'basic/customer',
          component: CustomerLimitPage
        },
        {
          path: 'basic/unit',
          component: UnitPage
        },
        {
          path: 'basic/goodsCategory',
          component: GoodsCategory
        },
        {
          path: 'basic/new-customer/add',
          component: NewAddCustomer
        },
        {
          path: 'salesQuotesInf',
          component: SalesQuotesInf
        },

        {
          path: 'fk/OtherPayPage',
          component: OtherPayPage,
        },
        {
          path: 'fk/addOtherPay',
          component: AddOtherPay,
        },
        {
          path: 'fk/prePay',
          component: PrePay,
        },
        {
          path: 'fk/addPrePay',
          component: AddPrePay
        },
        {
          path: 'fk/Refund',
          component: Refund,
        },
        {
          path: 'fk/addRefund',
          component: AddRefund,
        },
        {
          path: 'fk/pay',
          component: PayPage,
        },
        {
          path: 'fk/AddPay',
          component: addPay,
        },


        {
          path: 'cg/cgsq',
          component: CGSQPage
        },
        {
          path: 'cg/cgsqInfo',
          component: AddCGSQ
        },
        {
          path: 'cg/cgxj',
          component: CGXJPage
        },
        {
          path: 'cg/cgxjInfo',
          component: AddCGXJ
        }, {
          path: 'cgtest',
          component: Test,
        },
        {
          path: 'cg/gybj',
          component: GYBJPage,
        },
        {
          path: 'cg/gybjInfo',
          component: AddGYBJ,
        },
        {
          path: 'cg/cgbj',
          component: CGBJPage,
        },
        {
          path: 'cg/cgbjInfo',
          component: AddCGBJ,
        },
        {
          path: 'cg/cgdd',
          component: CGDDPage,
        },
        {
          path: 'cg/cgddInfo',
          component: AddCGDD,
        },
        {
          path: 'cg/cgth',
          component: CGTHPage,
        },
        {
          path: 'cg/cgthInfo',
          component: AddCGTH,
        },




        {
          path: 'basic/EditBOM/:id',
          name: 'EditBOM',
          component: EditBOM,
        }, {
          path: 'kc/CbtzPage',
          name: 'CbtzPage',
          component: CbtzPage,
        }, {
          path: 'kc/Addcbtz',
          name: 'Addcbtz',
          component: Addcbtz,
        }, {
          path: 'kc/EditCBTZ/:code',
          name: 'EditCBTZ',
          component: EditCBTZ,
        }, {
          path: 'kc/KcdbPage',
          name: 'KcdbPage',
          component: KcdbPage,
        }, {
          path: 'kc/Addkcdb',
          name: 'Addkcdb',
          component: Addkcdb,
        }, {
          path: 'kc/EditKCDB/:code',
          name: 'EditKCDB',
          component: EditKCDB,
        },
        //入库
        {
          path: 'inStore/buyInStore/',
          redirect: "inStore/buyInStore/page"
        },
        {
          path: 'inStore/buyInStore/page',
          name: 'BuyInStorePage',
          component: BuyInStorePage,
        },
        {
          path: 'inStore/buyInStore/add',
          name: 'AddBuyInStore',
          component: AddBuyInStore,
        },
        {
          path: 'inStore/buyInStore/edit/:code',
          name: 'EditBuyInStore',
          component: EditBuyInStore,
        }, {
          path: 'kc/CpzzPage',
          name: 'CpzzPage',
          component: CpzzPage,
        }, {
          path: 'kc/EditCPZZ/:code',
          name: 'EditCPZZ',
          component: EditCPZZ,
        }, {
          path: 'kc/Addcpzz',
          name: 'Addcpzz',
          component: Addcpzz,
        }, {
          path: 'kc/CpcxPage',
          name: 'CpcxPage',
          component: CpcxPage,
        }, {
          path: 'kc/EditCPCX/:code',
          name: 'EditCPCX',
          component: EditCPCX,
        }, {
          path: 'kc/Addcpcx',
          name: 'Addcpcx',
          component: Addcpcx,
        },
        //仓库报表-库存查询表
        {
          path: 'kc/kccx',
          component: StoreGoodSummaryPage
        },
        //仓库报表-商品收发明细表
        {
          path: 'kc/spsfmx',
          component: StoreGoodSummaryPageGoodsTransactionDetail
        },
        //仓库报表-批次跟踪表
        {
          path: 'kc/pcgzb',
          component: StoreGoodSummaryPageBatchTrackingDetail
        },
        //基础资料-客户分页
        {
          path: 'basic/customer',
          component: CustomerLimitPage
        },
        //基础资料-客户新增、修改
        {
          path: 'basic/customer/add',
          component: AddCustomer
        },
        //基础资料-供应商分页
        {
          path: 'basic/provider',
          component: ProviderLimitPage
        },
        //基础资料-供应商新增、修改
        {
          path: 'basic/new-customer/add',
          component: NewAddCustomer
        },
        //基础资料-账户分页
        {
          path: 'basic/account',
          component: AccountLimitPage
        },
        //发票管理-分页
        {
          path: 'fp/xsfp',
          component: SalesInvoiceLimitPage
        },
        //发票管理-销售发票新增
        {
          path: 'fp/addXSFP',
          component: AddSalesInvoice
        },
        //销售订单统计-执行情况
        {
          path: 'salesOrderCount/salesOrderExecutionStatus',
          component: SalesOrderExecutionPage
        },
        //销售订单统计-销售订单按客户汇总
        {
          path: 'salesOrderCount/salesOrderSummary-customer',
          component: SalesOrderSummaryPageCustomer
        },
        //销售订单统计-销售订单按月份汇总
        {
          path: 'salesOrderCount/salesOrderSummary-month',
          component: SalesOrderSummaryPageMonth
        },
        //销售订单统计-销售订单按年份汇总
        {
          path: 'salesOrderCount/salesOrderSummary-year',
          component: SalesOrderSummaryPageYear
        },
        //采购发票
        {
          path: 'fp/cgfp',
          component: PurchaseInvoiceLimitPage
        },
        //采购发票-新增
        {
          path: 'fp/addCGFP',
          component: AddPurchaseInvoice
        },
        //销售发票-修改
        {
          path: 'fp/updateXSFP/:code',
          name: 'UpdateSalesInvoice',
          component: UpdateSalesInvoice
        },
        //采购发票-修改
        {
          path: 'fp/updateCGFP/:code',
          name: 'UpdatePurchaseInvoice',
          component: UpdatePurchaseInvoice
        },
        //采购订单统计-供应商
        {
          path: 'purchaseOrderCount/purchaseSummary-provider',
          component: PurchaseOrderSummaryLimitPage
        },
        //采购订单统计-业务员
        {
          path: 'purchaseOrderCount/purchaseSummary-staff',
          component: PurchaseOrderSummaryLimitPageStaff
        },
        {
          path: 'rs/DeptLimitPage',
          name: 'DeptLimitPage',
          component: DeptLimitPage,
        },
        {
          path: 'rs/PermLimitPage',
          name: 'PermLimitPage',
          component: PermLimitPage,
        },
        {
          path: 'rs/RoleLimitPage',
          name: 'RoleLimitPage',
          component: RoleLimitPage,
        },
        {
          path: 'rs/AddRole',
          name: 'AddRole',
          component: AddRole,
        },
        {
          path: 'kc/EditRole/:id',
          name: 'EditRole',
          component: EditRole,
        },
        {
          path: 'rs/UserLimitPage',
          name: 'UserLimitPage',
          component: UserLimitPage,
        },
        {
          path: 'rs/AddUser',
          name: 'AddUser',
          component: AddUser,
        },
        {
          path: 'kc/EditUser/:id',
          name: 'EditUser',
          component: EditUser,
        },
      ]
    },
  ],
})

export default router
